 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
	<Frame name="QuestFramePanelTemplate" virtual="true">
		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\QuestFrame\UI-QuestGreeting-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>		
				<Texture file="Interface\QuestFrame\UI-QuestGreeting-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\QuestFrame\UI-QuestGreeting-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\QuestFrame\UI-QuestGreeting-BotRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>	
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentMaterialTopLeft">
					<Size>
						<AbsDimension x="239" y="241"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="21" y="-75"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentMaterialTopRight">
					<Size>
						<AbsDimension x="64" y="241"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentMaterialTopLeft" relativePoint="TOPRIGHT"/>
					</Anchors>
				</Texture>
				<Texture name="$parentMaterialBotLeft">
					<Size>
						<AbsDimension x="239" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentMaterialTopLeft" relativePoint="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<Texture name="$parentMaterialBotRight">
					<Size>
						<AbsDimension x="64" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentMaterialTopLeft" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	<Button name="QuestItemTemplate" virtual="true">
		<Size>
			<AbsDimension x="147" y="41"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIconTexture">
					<Size>
						<AbsDimension x="39" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentNameFrame" file="Interface\QuestFrame\UI-QuestItemNameFrame">
					<Size>
						<AbsDimension x="128" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentIconTexture" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="-10" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentName" inherits="GameFontHighlight" justifyH="LEFT">
					<Size>
						<AbsDimension x="90" y="36"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentNameFrame">
							<Offset>
								<AbsDimension x="15" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentIconTexture">
							<Offset>
								<AbsDimension x="-1" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.hasItem = 1;
			</OnLoad>
			<OnEnter>
				if ( self:GetAlpha() > 0 ) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					if ( self.rewardType == "item" ) then
						GameTooltip:SetQuestItem(self.type, self:GetID());
						GameTooltip_ShowCompareItem();
					elseif ( self.rewardType == "spell" ) then
						GameTooltip:SetQuestRewardSpell();
					end
				end
				CursorUpdate(self);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
				ResetCursor();
			</OnLeave>
			<OnUpdate>
				CursorOnUpdate(self);
			</OnUpdate>
			<OnClick>
				if ( self.rewardType == "spell" ) then
					if ( IsModifiedClick("CHATLINK") ) then
						ChatEdit_InsertLink(GetQuestSpellLink());
					end
				else
					HandleModifiedItemClick(GetQuestItemLink(self.type, self:GetID()));
				end
			</OnClick>
		</Scripts>
	</Button>
	<Button name="QuestRewardItemTemplate" inherits="QuestItemTemplate" virtual="true">
		<Scripts>
			<OnClick>
				if ( IsModifiedClick() ) then
					if ( self.rewardType == "spell" ) then
						if ( IsModifiedClick("CHATLINK") ) then
							ChatEdit_InsertLink(GetQuestSpellLink());
						end
					else
						HandleModifiedItemClick(GetQuestItemLink(self.type, self:GetID()));
					end
				else
					QuestRewardItem_OnClick(self);
				end
			</OnClick>
		</Scripts>
	</Button>
	<Button name="QuestTitleButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="300" y="16"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentQuestIcon" file="Interface\GossipFrame\AvailableQuestIcon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="4" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				QuestTitleButton_OnClick(self);
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
		<ButtonText>
			<Size>
				<AbsDimension x="275" y="0"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="20" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="QuestFontLeft"/>
	</Button>
	<Frame name="QuestHonorFrameTemplate" virtual="true">
		<Size x="500" y="20"/>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentHonorReceiveText" inherits="QuestFont" text="BONUS_HONOR">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentPoints" inherits="NumberFontNormalLarge" justifyH="LEFT">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentHonorReceiveText" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="42" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentIcon">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentPoints" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
   <Frame name="QuestTalentFrameTemplate" virtual="true">
     <Size x="500" y="20"/>
     <Layers>
       <Layer level="BACKGROUND">
         <FontString name="$parentTalentReceiveText" inherits="QuestFont" text="BONUS_TALENTS">
           <Anchors>
             <Anchor point="LEFT">
               <Offset>
                 <AbsDimension x="0" y="0"/>
               </Offset>
             </Anchor>
           </Anchors>
         </FontString>
         <FontString name="$parentPoints" inherits="NumberFontNormalLarge" justifyH="LEFT">
           <Anchors>
             <Anchor point="LEFT" relativeTo="$parentTalentReceiveText" relativePoint="RIGHT">
               <Offset>
                 <AbsDimension x="42" y="0"/>
               </Offset>
             </Anchor>
           </Anchors>
         </FontString>
       </Layer>
     </Layers>
   </Frame>
   <Frame name="QuestPlayerTitleFrameTemplate" virtual="true">
		<Size x="500" y="40"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIconTexture" file="Interface\Icons\INV_Misc_Note_02">
					<Size x="39" y="39"/>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentTitleFrameLeft" file="Interface\QuestFrame\UI-QuestItemNameFrame">
					<Size x="4" y="40"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentIconTexture" relativePoint="RIGHT">
							<Offset x="2" y="0"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.078125" right="0.1171875" top="0.15625" bottom="0.828125"/>
				</Texture>
				<Texture name="$parentTitleFrameCenter" file="Interface\QuestFrame\UI-QuestItemNameFrame">
					<Size x="200" y="40"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentTitleFrameLeft" relativePoint="RIGHT">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.1171875" right="0.828125" top="0.15625" bottom="0.828125"/>
				</Texture>
				<Texture file="Interface\QuestFrame\UI-QuestItemNameFrame">
					<Size x="11" y="40"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentTitleFrameCenter" relativePoint="RIGHT">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.828125" right="0.9140625" top="0.15625" bottom="0.828125"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentTitleLabel" inherits="GameFontNormalSmall" justifyH="LEFT" text="REWARD_TITLE">
					<Size x="200" y="12"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTitleFrameLeft">
							<Offset x="8" y="-9"/>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentTitle" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTitleLabel" relativePoint="BOTTOMLEFT">
							<Offset x="0" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
 </Ui>
